<?php /* Smarty version 2.6.21, created on 2009-07-21 21:07:42
         compiled from news_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'news_edit.tpl', 3, false),array('modifier', 'truncate', 'news_edit.tpl', 3, false),array('modifier', 'escape', 'news_edit.tpl', 13, false),)), $this); ?>
<div class="form">
<FORM method="post" action="/backend/news/save/">
    <H1><?php if ($this->_tpl_vars['News']->isNew()): ?>Добавление новости<?php else: ?>Редактирование новости '<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['News']->content)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 256) : smarty_modifier_truncate($_tmp, 256)); ?>
'<?php endif; ?></H1>
    <div class="operation">
    	<a href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
news/" onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
news/'); return false;" class="left">вернутся к списку</a>
    	<div style="clear: both;"></div>
    </div>
    <fieldset>
        <legend>Общая информация</legend>
   		<table>
        	<tr>
        		<td><label for="author">Автор/Источник:</label></td>
        		<td><input type="text" id="author" name="n[author]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['News']->author)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/></td>
        	</tr>
        	<tr>
        		<td><label for="author">Содержание:</label></td>
        		<td style="padding: 2px 2px 10px 10px;"><?php echo $this->_tpl_vars['editor']; ?>
</td>
        	</tr>
    	</table>
    </fieldset>
    <div class="buttonpanel">
        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
    </div>
    <input type="hidden" name="id" id="id" value="<?php echo $this->_tpl_vars['News']->getPk(); ?>
" />
    <input type="hidden" id="redirect" name="redirect" value="" />
</form>
</div>